<template>
<el-menu-item :index="path">
    <slot name="icon">

    </slot>
    <span>{{text}}</span>
</el-menu-item>
</template>

<script>
export default {
    name: "MenuItem",
    props:['path','text']
}
</script>

<style scoped>

</style>